<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
</head>
<body>
	<div class="main">
		<div class="optitle clearfix">
			<div class="title">用户管理&gt;&gt;</div>
		</div>
			<div class="content">
				<table class="box"> 
					<tbody><tr>
						<td class="field">用户编号：</td>
						<td><input type="hidden" id="userId" value="${user.user_id}">${user.user_id}</td>
						
					</tr>
					<tr>
						<td class="field">用户名：</td>
						<td>${user.name}</td>
					</tr>
					<tr>
						<td class="field">用户账号：</td>
						<td>${user.loginnane}</td>
					</tr>

					<tr>
						<td class="field">用户性别：</td>
						<td>
						<c:if test="${user.gender eq 1}">男</c:if>								
						<c:if test="${user.gender eq 0}">女</c:if>		
						</td>
					</tr>
					<tr>
						<td class="field">出生日期：</td>
						<td>${user.birthdate }
						</td>
					</tr>
					
					<tr>
						<td class="field">用户电话：</td>
						<td>${user.phone }
						</td>

					</tr>
					<tr>
						<td class="field">用户地址：</td>
						<td>
						${user.addree}
						</td>
					</tr>
					<tr>
						<td class="field">用户权限：</td>

						<td>
						<c:if test="${user.user_type eq 1}">管理员</c:if>	
						<c:if test="${user.user_type eq 2}">普通用户</c:if>	
						<c:if test="${user.user_type eq 3}">经理</c:if>			
							
						</td>
					</tr>
				</tbody></table>
			</div>
			<div class="buttons">
				<input type="button" id="update" value="修改" class="input-button">
				<input type="button" id="del" value="删除" class="input-button"> 
				<input type="button" id="repassword" value="重置密码" class="input-button"> 
				<input type="button" id="backButton" onClick="history.back(-1)" value="返回" class="input-button">
			</div>
	</div>
	<script type="text/javascript" src="js/user/view.js"></script>


</body></html>